<%@ Register Src="MainMenu.ascx" TagName="MainMenu" TagPrefix="bm" %>
	
<asp:Content ID="z0" runat="server" ContentPlaceHolderID="menuArea">
	<swf:BizProc ID="orderBP" runat="server" FactoryName="eComSalesOrder">
		<ParentBizProc id="loginBP" />
	</swf:BizProc>
	<swf:BizProc runat="server" ID="checkout" FactoryName="prodWizCheckOut">
		<State initialCheckoutView="$CmpSetting(sitePath)$/std/CheckOut.aspx" finalCheckoutView="$CmpSetting(sitePath)$/std/CheckOutComplete.aspx" />
		<ParentBizProc id="orderBP" fieldName="id" dataId="pid" />
		<ParentBizProc id="orderBP" dataId="orderInfo" />
	</swf:BizProc>
	<bm:MainMenu runat="server" />
</asp:Content>
<asp:Content ID="z2" runat="server" ContentPlaceHolderID="cultureArea">
	<bm:CultureOptions runat="server" />
</asp:Content>

<asp:Content id="z1" ContentPlaceHolderID="logoArea" runat="server">
	<a href="/default.aspx">
	<art:StandAloneArticleListDisplay runat="server" ID="lgo" PID="MainLogo"
		BoxSkinId="MainLogo" ListTemplate="MainLogo-Style1" ImageRes="MainLogo1" />
	</a>
</asp:Content>

<asp:Content ID="z3" runat="server" ContentPlaceHolderID="ErrorMessageArea">
	<swf:BizProc runat="server" ID="errMsgBP" FactoryName="messenger">
		<ParentBizProc id="_all" />
	</swf:BizProc>
	
	<div >
	<snc:ComplexBizObjListDisplay ID="em1" runat="server" ParentBizProcIds="errMsgBP"
		ReadOnlyTemplate="Articles.Gui.AspNet.MessageListDisplay-TextOnlyWithSummary"  >
		<macros>
			<Entry name="navLink" type="String">articleview.aspx?gArt1pid=$pid$&amp;gArt1id=$id$</Entry>
		</macros>
	</snc:ComplexBizObjListDisplay>		
	</div>
	<script>
var prevVidHost = null;
var prevVidHostContent = null;
function showMediaClip(hostDiv, clipUrl, vidWidth, vidHeight)
{
	if(prevVidHost != null)
		prevVidHost.innerHTML = prevVidHostContent;

    var isIeSaf = nitobi.browser.IE || nitobi.browser.SAFARI;
	var html ='<object id="' + hostDiv.id + 'wmp_p" width="' + vidWidth + '" height="' + vidHeight + 
			  '" type="application/x-ms-wmp"';
	if(isIeSaf)
	  html += ' classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"><param name="URL" value="' + clipUrl + '" />';
	else
	  html += ' data="' + clipUrl + '">';
	html +='<param name="autostart" value="true" /><param name="volume" value="100" /><param name="allowchangedisplaysize" value="true"/><param name="transparentatstart" value="true"/><param name="displaysize" value="4"/></object>';
	prevVidHost = hostDiv;
	prevVidHostContent = hostDiv.innerHTML;
	hostDiv.innerHTML = html;
	$(hostDiv.id + 'wmp_p').attachEvent("PlayStateChange",function(newState){
    if(newState == 1)
	{
	  $(hostDiv.id + 'wmp_p').style.display = "none";
	  window.setTimeout('prevVidHost.innerHTML = prevVidHostContent', 50);
	}
	});

}
	</script>
</asp:Content>

